package com.hjxr.xmgl.web.service.impl;

import com.hjxr.xmgl.web.domain.Event;
import com.hjxr.xmgl.web.mapper.EventMapper;
import com.hjxr.xmgl.web.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author: xk
 * @create: 2021-11-26 15:23
 * @description:
 **/
@Service
public class EventServiceImpl implements EventService {

    @Autowired
    private EventMapper EventMapper;

    public List<Map<String,Object>> selectAll(){
        return EventMapper.selectAll() ;
    }

    @Override
    public Event selectById(Integer eventId) {
        return EventMapper.selectById(eventId);
    }

    @Override
    public int insertEvent(Event event) {
        return EventMapper.insertEvent(event);
    }

    @Override
    public int updateEvent(Event event) {
        return EventMapper.updateEvent(event);
    }

    @Override
    public int deleteEventById(Integer eventId) {
        return EventMapper.deleteEventById(eventId);
    }
}
